//
//  AJTTStoryListCell.swift
//  JourneyThroughTime
//
//  Created by iOS-Czz on 2023/11/6.
//

import UIKit

class AJTTStoryListCell: UITableViewCell {
    override func awakeFromNib() {
        super.awakeFromNib()
    }
    @IBOutlet var timeLabel: UILabel!
    @IBOutlet var coverImage: UIImageView!
    @IBOutlet var bgView: UIView!
    
    @IBOutlet var nameLabel: UILabel!
    
    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)
        
        // Configure the view for the selected state
    }
    override func layoutSubviews() {
        super.layoutSubviews()
    }
    var model: AJTTStoryModel? {
        didSet {
            self.timeLabel.text = self.model?.date
            self.nameLabel.text = self.model?.name
            self.coverImage.image = UIImage.loadImage(self.model!.picture)
        }
    }    
    
}
